<div>
    <ol class="breadcrumb" >
        <li> <i class="fa fa-anchor"></i>
            &nbsp;充电记录
        </li>
        <li>充电记录列表</li>
    </ol>
    <div class="panel ">

        <div class="panel-heading" >
            <i class="fa fa-list"></i>
            &nbsp;&nbsp;正在充电信息列表
        </div>
        <form class="search-form" action={:U("Site/index")} method="get">
            <div class="panel-body search-panel-body retract"  >
                <div class="col-xs-3 search-col">
                    <div class="input-group">
                        <span class="input-group-addon">所在地</span>
                        <input type="text" name="name" class="form-control" value="" placeholder="此处下拉框"></div>
                </div>
                <div class="col-xs-3 search-col">
                    <div class="input-group">
                        <span class="input-group-addon">站点</span>
                        <input type="text" name="name" class="form-control" value="" placeholder="此处下拉框"></div>
                </div>
                <div class="col-xs-2 search-col">
                    <button  type="submit" class="btn btn-warning">
                        <i class="fa fa-search"></i>
                        &nbsp;搜索
                    </button>
                </div>
            </div>
        </form>
        <table  class="table table-bordered table-striped table-mcit" >
            <thead>
            <tr>
                <th >
                    <empty name="is_order_name">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_name' value=''>电桩编号</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active'  type='submit' name='order_name' value=''>
                            <if condition="$order_name eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;电桩编号
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_stu_num">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_stu_num' value=''>站点名称</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_stu_num' value=''>
                            <if condition="$order_stu_num eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;站点名称
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_idcard">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_idcard' value=''>地址</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_idcard' value=''>
                            <if condition="$order_idcard eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;地址
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_major">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_major' value=''>启充时间</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_major' value=''>
                            <if condition="$order_major eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;启充时间
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_tel">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_tel' value=''>结束时间</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_tel' value=''>
                            <if condition="$order_tel eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;结束时间
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_qq">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_qq' value=''>充电时长</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_qq' value=''>
                            <if condition="$order_qq eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;充电时长
                        </button>
                    </empty>
                </th>
                 <th>
                    <empty name="is_order_household">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_household' value=''>充电总量</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_household' value=''>
                            <if condition="$order_household eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;充电总量
                        </button>
                    </empty>
                </th>
                 <th>
                    <empty name="is_order_household">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_household' value=''>用户</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_household' value=''>
                            <if condition="$order_household eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;用户
                        </button>
                    </empty>
                </th>
                <th>
                    <empty name="is_order_edit_self">
                        <button class='btn btn-block btn-mcit' type='submit' name='order_edit_self' value=''>操作</button>
                        <else/>
                        <button class='btn btn-block btn-mcit btn-mcit-active' type='submit' name='order_edit_self' value=''>
                            <if condition="$order_edit_self eq 1">
                                <i class="fa fa-chevron-down"></i>
                                <else/>
                                <i class="fa fa-chevron-up"></i>
                            </if>
                            &nbsp;操作
                        </button>
                    </empty>
                </th>
            </tr>
            </thead>
            <tbody id="DataTableContent">
          
                    <tr>
                        <td>081300000006</td>
                        <td>XXX站点</td>
                        <td>四川省自贡市汇东大酒店</td>
                        <td>15-11-11 12:11:23</td>
                        <td>15-11-11 24:11:23</td>
                        <td>12h</td>
                        <td>12kw</td>
                     	 <td>ID:3232132</td>
                       
                        <td>
                            <a class="btn btn-success btn-sm" href={:U("Charrecord/detail")}>
                                <i class="fa fa-edit"></i>
                                &nbsp;详情信息
                            </a>
                          
                            <a class="btn btn-success btn-sm" href="__APP__/Admin/Evcharger/add/id/{$data.id}">
                                <i class="fa fa-edit"></i>
                                &nbsp;备用
                            </a>
                            
                        </td>
                    </tr>

            <tr>
                <td colspan="99" style="text-align:center">
                    <ul class="pagination">{$pageView}</ul>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script type="text/javascript">
    function delPlant(){
        var id = $("#delplant").attr("data-id");
        if(confirm("确定要删除吗？")){
            $.ajax({
                type:"post",
                url:'__URL__/del',
                data:'id='+id,
                success:function(data){
                    location.reload();
                }
            });
        }
    }
</script>